package com.leancloud.home.adapter;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.leancloud.home.R;
import com.leancloud.home.entity.ComputingEntity;

import tech.com.commoncore.utils.OnNoDoubleClickListener;

public class ComputingAdapter extends BaseQuickAdapter<ComputingEntity, BaseViewHolder> {



    public ComputingAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, ComputingEntity item) {

//        ImageView iv = (ImageView) helper.getView(R.id.img_xz);
//        GlideManager.loadImg(item.getIconId(), iv, R.mipmap.portrait);

        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_msg,item.getMsg());

        helper.itemView.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });

    }
}
